/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f8fafc;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    padding: 12px 40px;
    background: linear-gradient(90deg, #4a90e2, #5cb3ff, #72d2ff);
    border-bottom: 1px solid #eee;
    color: white;
}

.nav-links a {
    margin-right: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover {
    color: #f0f7ff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.user-info a {
    color: white;
    text-decoration: none;
}

.user-info a:hover {
    color: #f0f7ff;
}

/* Logo样式 */
.logo-container {
    text-align: center;
    padding: 15px 0;
    background: white;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo-container h1 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

/* 主要内容区域样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 250px minmax(500px, 1fr) 250px;
    gap: 20px;
    flex: 1;
}

/* 左侧关键词框 */
.keyword-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
    height: 480px;
}

.keyword-box h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    padding-left: 5px;
}

.keyword-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: calc(100% - 35px);
    overflow-y: auto;
}

.keyword-list li {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.keyword-list li:hover {
    background-color: #f0f7ff;
    color: #4a90e2;
}

/* 中间内容区域 */
.content-area {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
}

#video, #signVideoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.recognition-button {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.recognition-button:first-child {
    background-color: #4a90e2;
    color: white;
}

.recognition-button:last-child {
    background-color: #2ecc71;
    color: white;
}

.recognition-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 右侧结果框 */
.result-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
    height: 480px;
}

.result-box h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    padding-left: 5px;
}

#recognitionResults {
    height: calc(100% - 35px);
    overflow-y: auto;
    font-size: 14px;
    color: #666;
    padding: 0 5px;
}

/* 底部区域 */
.bottom-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 40px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: 20px;
}

/* 识别结果显示区域 */
#recognitionResultArea {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
    min-height: 54px;
    display: flex;
    align-items: center;
}

/* 输入框容器 */
.input-container {
    display: flex;
    width: 100%;
}

/* 输入框样式 */
.text-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    min-height: 54px;
    line-height: 24px;
}

.text-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 2px 5px rgba(74,144,226,0.15);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@media (max-width: 900px) {
    .bottom-container {
        grid-template-columns: 1fr;
    }
} 